<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix'        => 'admin/DesignerCompetition2022',
    'namespace'     => 'Beerus\\Modules\\DesignerCompetition2022\\Controllers',
    'middleware'    => [
        'web',
        'admin',
    ],
], function (Router $router) {
    // 报名列表
    $router->get('/sign', 'SignController@index');
    $router->put('/sign/{id}', 'SignController@save');
    $router->get('/download/{id}', 'SignController@download');
    $router->get('/info', 'InfoController@index');
    $router->get('/info/{id}/edit', 'InfoController@edit');
    $router->post('/info/save', 'InfoController@save');
    // 评审员相关
    $router->get('/reviewer', 'ReviewerController@index');
    $router->get('/reviewer/create', 'ReviewerController@edit');
    $router->get('/reviewer/{id}/edit', 'ReviewerController@edit');
    $router->post('/reviewer/save', 'ReviewerController@save');
    $router->delete('/reviewer/{id}', 'ReviewerController@del');
    // 评审列表
    $router->get('/first_audit/{award_id}', 'FirstAuditController@index');
    $router->put('/first_audit/{award_id}/{id}', 'FirstAuditController@save');
    $router->get('/final_audit/{award_id}', 'FinalAuditController@index');
    $router->put('/final_audit/{award_id}/{id}', 'FinalAuditController@save');
    // 获奖结果
    $router->get('/honor_result', 'HonorResultController@index');
});
